﻿using System.Xml;

namespace BattleFury.Lib.Extensions
{
	public static class XmlReaderExtensions
	{
		public static int GetInt(this XmlReader reader, string attributeName)
		{
			int output;
			int.TryParse(reader.GetAttribute(attributeName), out output);
			return output;
		}
	}
}
